<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>查看商品信息</title>
    <link rel="stylesheet" th:href="@{/src/css/layui.css}">
</head>
<body>
<form class="layui-form" style="width: 80%;">
        <div class="layui-form-item">
            <label class="layui-form-label">商品名称</label>
            <div class="layui-input-block">
                <input type="text" id="goodsName" class="layui-input"
                       lay-verify="required" name="goodsName" th:value="${goods.goodsName}" readonly="readonly">
            </div>
        </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">描述</label>
            <div class="layui-input-block">
                <input type="text" name="subtitle" class="layui-input"
                       lay-verify="subtitle" th:value="${goods.subtitle}" readonly="readonly">
            </div>
        </div>
    <div class="layui-form-item">
        <label class="layui-form-label">原价</label>
        <div class="layui-input-block">
            <input type="text" name="goodsEvaluate" class="layui-input"
                   lay-verify="goodsEvaluate" th:value="${goods.goodsEvaluate}" readonly="readonly">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">现价</label>
        <div class="layui-input-block">
            <input type="text" name="goodsNowPrice" class="layui-input"
                   lay-verify="goodsNowPrice" th:value="${goods.goodsNowPrice}" readonly="readonly">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">库存</label>
        <div class="layui-input-block">
            <input type="text" name="stock" class="layui-input"
                   lay-verify="stock" th:value="${goods.stock}" readonly="readonly">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">类型</label>
        <div class="layui-input-block">
            <input type="text" class="layui-input" readonly="readonly" th:each="type:${goodsTypes}" th:value="${type.goodsTypeName}" th:if="${type.goodsTypeId eq goods.goodsTypeId}"/>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">开始日期</label>
        <div class="layui-input-block">
            <input type="text" name="goodsStart" id="goodsStart" class="layui-input"
                   lay-verify="goodsStart" th:value="${#dates.format(goods.goodsStart,'yyyy-MM-dd')}" readonly="readonly">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">结束日期</label>
        <div class="layui-input-block">
            <input type="text" name="goodsEnd" id="goodsEnd" class="layui-input"
                   lay-verify="goodsEnd" th:value="${#dates.format(goods.goodsEnd,'yyyy-MM-dd')}" readonly="readonly">
        </div>
    </div><div class="layui-form-item">
    <label class="layui-form-label">点击数</label>
    <div class="layui-input-block">
        <input type="text" name="goodsClick" class="layui-input"
               lay-verify="goodsClick" th:value="${goods.goodsClick}" readonly="readonly">
    </div>
    </div><div class="layui-form-item">
        <label class="layui-form-label">拍品状态</label>
        <div class="layui-input-block">
            <input type="text" name="goodsState" class="layui-input"
                   lay-verify="goodsState" th:value="${goods.goodsState}" readonly="readonly">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">拍品位置</label>
        <div class="layui-input-block">
            <input type="text" name="goodsPos" class="layui-input"
                   lay-verify="goodsPos" th:value="${goods.goodsPos}" readonly="readonly">
        </div>
    </div>
</form>


<script th:src="@{/src/layui.js}"></script>

</body>
</html>